<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>图书列表</title>
</head>
<body>
<h1>图书列表</h1>
<ul>
    <li th:each="book : ${allBooks}" th:text="${book}"></li>
</ul>

<h1>Java图书列表</h1>
<ul>
    <li th:each="book : ${javaBooks}" th:text="${book.title} +' ' + ${book.author}"></li>
</ul>

<h1>Spring图书列表</h1>
<ul>
    <li th:each="book : ${springBooks}" th:text="${book}"></li>
</ul>
</body>
</html>